package com.yeeKa.common.exception;

/**
 * @author win10
 */
public class BusinessException extends RuntimeException {
    /**
     * 保存错误信息统一响应
     */
    private final Integer code;
    private final String message;
    public BusinessException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public String getMsg() {
        return message;
    }
    public Integer getCode() {
        return code;
    }
}
